<?php

include "config.php";

$query = "SELECT * from admin";

$result = mysqli_query($db,$query);

$res = mysqli_fetch_assoc($result);

if ($res['username'] === $_POST['username'] && $res['password'] === $_POST['password']) {
	setcookie("username",$_POST['username']);
	echo "TRUE";
}
else{
	echo "FALSE";
}

?>